import { axiosRequest } from '@/utils/request'
import { lcglModulePrefix } from '../../config'

/**
 * 模型新增
 * @param {*} param
 */
export const addModel = (param) => {
  return axiosRequest(`${lcglModulePrefix}/model/createModel`, '模型新增', 'POST', param)
}

/**
 * 模型查询
 * @param {*} param
 */
export const getModel = (param) => {
  return axiosRequest(`${lcglModulePrefix}/model/getModelPage`, '模型查询', 'GET', param)
}

/**
 * 批量删除
 * @param {*} param
 */
export const deleteModel = (param) => {
  return axiosRequest(`${lcglModulePrefix}/model/removeModelById/${param.id}`, '文件删除', 'DELETE', {})
}

/**
 * 警告
 * @param {*} param
 */
export const warningModel = (param) => {
  return axiosRequest(`${lcglModulePrefix}/model/deploy/${param.id}`, '警告', 'POST', {})
}
